﻿using Oliving.Edge.Dto.Oliving;
using Oliving.Edge.IServices.BASE;
using Oliving.Edge.Model.Models;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace Oliving.Edge.IServices.Oliving
{

    public interface ISys_configServices : IBaseServices<sys_config>
    {
        /// <summary>
        /// 获取所有数据
        /// </summary>
        /// <returns></returns>
        Task<List<Sys_configDto>> GetList();


        /// <summary>
        /// 查询详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<Sys_configDto> GetDto(int id);




        /// <summary>
        /// 获取所有数据
        /// </summary>
        /// <returns></returns>
        Task<List<Sys_configDto>> GetListCache();


        /// <summary>
        /// 查询详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<Sys_configDto> GetDtoCache(int id);






        /// <summary>
        /// 更新数据
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<bool> UpdateDto(Sys_configDto dto);

        /// <summary>
        /// 添加数据
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<int> AddDto(Sys_configDto dto);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<bool> Delete(int id);




    }


}
